<template>
  <el-container id="app">
    <el-aside width="200px" class="aside-box">
      <el-menu
        default-active="2"
        class="el-menu-vertical-demo"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        :router="true"
      >
        <el-menu-item index="create" :route="{path:'/create'}">
          <i class="el-icon-location"></i>
          <span slot="title">创建模板</span>
        </el-menu-item>
        <el-menu-item index="list" :route="{path:'/list'}">
          <i class="el-icon-location"></i>
          <span slot="title">模板管理</span>
        </el-menu-item>
        <el-menu-item index="temInfo" :route="{path:'/temInfo'}">
          <i class="el-icon-menu"></i>
          <span slot="title">关联模板配置</span>
        </el-menu-item>
        <el-menu-item index="GLlist" :route="{path:'/GLlist'}">
          <i class="el-icon-menu"></i>
          <span slot="title">关联模板管理</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    <el-container>
      <el-header class="header-box" height="50px">报文模板处理系统</el-header>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<style>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  position: absolute;
  height: 100%;
  width: 100%;
}
</style>
<style lang="scss" scoped>
/deep/.el-container {
  // height: 100%;
  // background: red;
}
.header-box {
  height: 50px;
  line-height: 50px;
  background: #777777;
}
.aside-box {
  background: #666666;
}
</style>
